package com.iknow.db;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.iknow.xmpp.service.Message;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.List;

public class MessageDataBase
{
  public Context ctx = null;

  public MessageDataBase(Context paramContext)
  {
    this.ctx = paramContext;
  }

  private Message craeteMessageByCursor(String paramString, Cursor paramCursor, DateFormat paramDateFormat)
  {
    return null;
  }

  private SQLiteDatabase getDataBase()
  {
    return IKnowDatabaseHelper.getDatabase(this.ctx);
  }

  private ContentValues getMsgContentValues(Message paramMessage, String paramString)
  {
    return new ContentValues();
  }

  public void addMessage(Message paramMessage, String paramString)
  {
  }

  public List<Message> getXmppMessage(String paramString1, String paramString2)
  {
    return new ArrayList();
  }

  public void updateXmppMessageReadFlag(String paramString1, String paramString2)
  {
  }

  public void updateXmppMessageStatus(String paramString, int paramInt)
  {
    Object[] arrayOfObject = new Object[2];
    arrayOfObject[0] = String.valueOf(paramInt);
    arrayOfObject[1] = paramString;
    String str = String.format("update XmppMessage set status='%s' where thread='%s'", arrayOfObject);
    getDataBase().execSQL(str);
  }
}